package me.yricky.mayu.ui

import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Surface
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.formdev.flatlaf.FlatIntelliJLaf


/**
 * @author Yricky
 * @date 2022/4/19
 */
object Theme {

    fun initLookAndFeel(){
        System.setProperty("awt.useSystemAAFontSettings","on")
        System.setProperty("swing.aatext", "true")
        FlatIntelliJLaf.setup()
    }


}
@Composable
fun ItemCard(modifier: Modifier = Modifier,content:@Composable ()->Unit = {}){
    Surface(
        modifier.padding(8.dp,4.dp),
        shape = RoundedCornerShape(8.dp),
        elevation = 8.dp,
        content = content
    )
}
val ItemTitleSp = 18.sp
